home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINWORDS
/
AMI_MCRO.ZIP
/
PRNBTCH2.SMM
< prev
Wrap
INI File
|
1993-11-04
|
37KB
|
2,270 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
PostScript Printer
[port]
LPT1:
[lang]
1
[desc]
The new and improved batch printer.... This one also sums words and characters from each file J.B.
Lotus WPD Technical Support
Advanced
Call Backs, Global Arrays
noautorun
752484447
83
677020248
3555
12
1426
12412
36
38
Call Backs, Runlater, Global Aray
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[tag]
Body Text
2
[fnt]
Arial
240
0
16384
[algn]
1
1
216
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
0
0
0
[nfmt]
272
1
3
.
,
$
Body Text
6
1
1560
1
3075
1
4275
1
5655
1
7005
1
8580
0
[lay]
Standard
513
[rght]
15840
12240
1
936
1440
1
1252
90
0
1
0
1
0
2
1
936
12150
9
1
720
1
1440
1
2160
1
2880
1
3690
1
4815
1
5925
1
7200
1
8535
[hrght]
[lyfrm]
1
11200
0
0
12240
1252
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1252
12240
1
1440
0
1
792
1440
0
1
0
1
1
0
1
1440
10800
0
[txt]
<+B><:da<*!><* >>
<+B>Peyton McManus
<+B>Page <:P10,0,> of <:X3,16384;NumPages>11<:X~3,16384;NumPages>
<+B>
<+B>
>
[frght]
[lyfrm]
1
13248
0
14400
12240
15840
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
15840
12240
1
1440
90
1
14472
1440
0
1
0
1
1
0
1
1440
10800
0
[txt]
<+B>Revision Number <:da<*&><* >>
<+B><:Da> <:b<* >>
<+B>
>
[elay]
[l1]
0
[pg]
12
47 0 34 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
94 0 24 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
141 0 0 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
188 0 32 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
235 0 13 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
282 0 40 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
329 0 7 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
376 0 34 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
423 0 12 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
468 0 40 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
507 0 41 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
508 0 10 1025 1 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
<:#276,11214>Declare GetFlag(p1)
<:#276,11214>Declare SetFlag(p1,p2)
<:#276,11214>Declare SaveSettings(p1,p2,p3)
<:#276,11214>Define SetTrue() SetDlgITemText(Hdlg,%1,"True")
<:#276,11214>Define SetFalse() SetDlgITemText(Hdlg,%1,0)
<:#276,11214>Define GetItem() GetDlgItemText(Hdlg,%1)
<:#276,11214>Define GetPerm() GetGlobalArray$("perm",%1)
<:#276,11214>Define GetTemp() GetGlobalArray$("temp",%1)
<:#276,11214>Define Hour_up 67
<:#276,11214>Define Minute_up 66
<:#276,11214>Define Hour_down 57
<:#276,11214>Define Minute_down 56
<:#276,11214>define VK_LBUTTON 0x001
<:#276,11214>Define EnableWindow() DllCall("User,EnableWindow,AHA",%1,%2)
<:#276,11214>Define SetFocus() DllCall("User,SetFocus,HH",%1)
<:#276,11214>define FindWindow() DllCall("user,FindWindow,HCC", %1, %2)
<:#276,11214>define isiconic(hWnd) DLLCall("user,isiconic,HA", %1)
<:#276,11214>
<:#276,11214>
<:#276,11214>
<:#276,11214>define GetActiveWindow() DllCall("user,GetActiveWindow,H")
<:#276,11214>define SetWindowText() DllCall("user,SetWindowText,IHC", %1, %2)
<:#276,11214>define TitleBarMsg() SetWindowText(GetActiveWindow(), %1)
<:#276,11214>define GetWindowText() DllCall("user,GetWindowText,HHFH", %1, %2, %3)
<:#276,11214>
<:#276,11214>
<:#276,11214>
<:#276,11214>
<:#276,11214>
@Function@<:#288,11214><:><:>Function Multiple()
<:#276,11214>IF IsNewWave()
<:#276,11214> Message("Macro not available while running under HP NewWave.")
<:#276,11214> Exit Function
<:#276,11214>ENDIF
<:#276,11214>call closeall.smm()
<:#276,11214>X = 1
<:#276,11214>AllocGlobalVar("Perm",200)
<:#276,11214>SetGlobalArray("Perm",1,1)
<:#276,11214>AllocGlobalVar("Time"2) ' This is the Time Global
<:#276,11214>SetGlobalArray("time",1,0)
<:#276,11214>SetGlobalArray("time",2,0)
<:#276,11214>Mac=GetRunningMacroFile$()
<:#276,11214>doc=getdocpath$()
<:#276,11214>Filledit(9001,"{doc}*.s?m")
<:#276,11214>Filledit(60,1)
<:#276,11214>SetDlgCallBack(54,"{Mac}!Time")
<:#276,11214>SetDlgCallBack(51,"{Mac}!Options")
<:#276,11214>Box=dialogbox(".","Select")
<:#276,11214>if Box<<<;>1
<:#276,11214> FreeGlobalVar("Time")
<:#276,11214> FreeGlobalVar("Perm")
<:#276,11214> FreeGlobalVar("Temp")
<:#276,11214> Exit Function
<:#276,11214>Endif
<:#276,11214>Files=GetDialogField$(8001)
<:#276,11214>Call Loadfiles(Files)
<:#276,11214>Radio1=getdialogfield$(60)
<:#276,11214>Radio2=Getdialogfield$(61)
<:#276,11214>If {Radio2}
<:#276,11214> hour=GetGlobalArray$("time",1)
<:#276,11214> Minute=GetGlobalArray$("time",2)
<:#276,11214> IF Hour<;>0 or Minute<;>0
<:#276,11214> Runlater("{Mac}!Go","{hour}:{Minute}")
<:#276,11214> message("Printing will begin in {Hour} Hours and {Minute} Minutes")
<:#276,11214> Else
<:#276,11214> Message("No Time Selected...Printing Now!")
<:#276,11214> Call Go()
<:#276,11214> Endif
<:#276,11214>Elseif {Radio1}
<:#276,11214> Call Go()
<:#276,11214>Endif
<:#276,11214>End Function
<:#276,11214>
<:#276,11214>
<:#276,11214>
@Function@<:#288,11214><:><:><:><:>Function LoadFiles(Files)
<:#276,11214>'SingleStep(1)
<:#276,11214>From=1
<:#276,11214>Finish=9999
<:#276,11214>Flag=1
<:#276,11214>Copies=1
<:#276,11214>x=1
<:#276,11214>dir=getcurrentdir$()
<:#276,11214>Total=GetGlobalArray$("Perm",1)
<:#276,11214> Dim LStorage(total)
<:#276,11214> For T=2 to ToTal
<:#276,11214> LStorage(t)=GetGlobalArray$("Perm",t)
<:#276,11214> Next
<:#276,11214>While (1)
<:#276,11214> Filename=Strfield$(Files,x," ")
<:#276,11214> if Len(filename)<;>3
<:#276,11214> Found=ArraySearch(&LStorage,Filename,2,"^")
<:#276,11214> IF Found<;>0
<:#276,11214> Temp=LStorage(Found)
<:#276,11214> Else
<:#276,11214> temp="{dir}^{Filename}^{Copies}^{From}^{Finish}^{Flag}"
<:#276,11214> Endif
<:#276,11214> SetGlobalArray("perm",x+1,Temp)
<:#276,11214> x=x+1
<:#276,11214> Else
<:#276,11214> Break
<:#276,11214> Endif
<:#276,11214>Wend
<:#276,11214>SetGlobalArray("Perm",1,x)
<:#276,11214>End Function
<:#276,11214>
<:#276,11214>
@Function@<:#288,11214><:><:>Function Options(Hdlg,Id,Text)
<:#276,11214>Files=GetDlgItemText(Hdlg,8001)
<:#276,11214>If Len(files) <<3
<:#276,11214> Message("Please Select Some Files First, Thanks..")
<:#276,11214> Exit Function
<:#276,11214>Endif
<:#276,11214>
<:#276,11214>Call Loadfiles(Files)
<:#276,11214>MaxPerm=GetGlobalArray$("Perm",1)
<:#276,11214>AllocGlobalVar("Temp",MaxPerm)
<:#276,11214>AllocGlobalVar ("Counter",1)
<:#276,11214>SetGlobalVar("Counter",2)
<:#276,11214>
<:#276,11214>For x=2 to Maxperm
<:#276,11214> Data=GetGlobalArray$("Perm",x)
<:#276,11214> SetGlobalArray("temp",x,Data)
<:#276,11214>Next
<:#276,11214>Call SetFirst()
<:#276,11214>Mac=GetRunningMacroFile$()
<:#276,11214>FillEdit(50,1)
<:#276,11214>SetDlgCallBack(8000,"{mac}!Numbering")
<:#276,11214>SetDlgCallBack(8001,"{MAc}!Numbering")
<: